package com.wf.smartcomm.server.service;

import java.util.List;

import com.wf.smartcomm.server.bean.House;
import com.wf.smartcomm.server.bean.UnitMachine;
import com.wf.smartcomm.server.bean.User;
import com.wf.smartcomm.server.bean.Village;
import com.wf.smartcomm.server.model.Page;

/** 
 * @author 38884306@qq.com  
 * @version 创建时间：2015-5-20 下午2:24:59 
 * 
 */
public interface HouseService {
	public void save(House house);
	public void listByUser(User user,Page page);
	public void listByVillage(Village village,Page page);
	public void update(House house);
	public House getByUmInfo(UnitMachine um,String number);
	public void list(Page page);
	public void queryByKey(Village village,String sSearch, Page page);
	void listByHost(String hostId, Page page);
	void listByAttach(String attach, Page page);
	public House getById(String hid);
	public void listBySelect(Village village,String region,String building,String entrance,Page page);
	public void listEntrance(String vid,String region,String building,Page page);
	void listBuilding(String vid,String region, Page page);
	public void listRegion(Village village,Page page);
	public void addUser(String hid, String uid);
	public void listUnlockHouses(User user, Page page);
	public void setReceiver(String hid,String uid);
	public List<House> listByVillage(String vid);
	public void deleteUser(String hid, String attachId);
	public List<House> listToJobSchedule(Village village);
	public List<User> listUnlocker(House house);
	public House getHouseByInfo(String vid, String region, String building, String entrance, String number);
	public void listAllWithNumber(String vid, String region,String building,String entrance, Page page);
	public List<House> listByUm(UnitMachine um);
}
